package test.analysis;

import java.util.Calendar;
import test.WorkFlowTest;

import com.cait.workflowserver.analysis.AbstractAnalyser;
import com.cait.workflowserver.analysis.AnalyseContext;
import com.cait.workflowserver.analysis.WiMonthGeneralAnalyser;
import com.cait.workflowserver.analysis.datagetter.ProcDefParticipantMatrixDataGetter;


/**
 * 分析测试类
 * @author Raiden
 *
 */
public class testAnalyse extends WorkFlowTest {

	public testAnalyse(String key) {
		super(key);
	}
	
	public void testAnalyseT() {
//		AnalyseContext context = new AnalyseContext();
//		AbstractAnalyser analyser = new WiMonthGeneralAnalyser();
//		context.setAnalyseDate(Calendar.getInstance());
//		analyser.analyse(context);
		int i=0;
		while(i<1000) 
 		{
 			try 
 			{
 				Thread.sleep(10);
 		    }
 			catch (InterruptedException e) 
 	 		{
 		    	 
 	 		}
 			i++;
 			
 		}
		ProcDefParticipantMatrixDataGetter dd=new ProcDefParticipantMatrixDataGetter();
		com.cait.framework.data.filter.FilterDefinition f=new com.cait.framework.data.filter.FilterDefinition();
		com.cait.framework.data.DataTable dt=dd.getData(f);
		System.out.println(dt.size());
 		
 		
 		

//		while(true) { try { Thread.sleep(10);
//		} catch (InterruptedException e) {}}
	}

	@Override
	protected void setUp() throws Exception {
		super.setUp();	
	}

	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}
}
